<%@ Page EnableEventValidation="false" EnableViewState="false" Language="vb" AutoEventWireup="false" CodeFile="connection.aspx.vb" Inherits="pages_Connections_Connection"
    MasterPageFile="~/masterpages/codegen.master"
    Title="Add or Change a Project."
    ValidateRequest="False"
%>
<asp:Content ID="c" ContentPlaceHolderID="body" runat="server">

    <uc:FormBegin ID="fb" runat="server" />
        <uc:Textbox  ID="txtConnectionName" runat="server" Required="true" Label="Name" />
        <uc:Dropdown ID="ddConnectionSetId" Runat="server" Required="true" Label="Pattern" />

        <uc:FormLabel ID="fl" runat="server" Text="Database" />
        <uc:Dropdown ID="ddConnectionDriverId" Runat="server" Required="true" Label="Driver" />
        <uc:Textarea  ID="txtConnectionString" runat="server" Required="true" Label="Conn. String" />
        <uc:Textbox  ID="txtConnectionPassword" runat="server" Required="false" Label="Password" />
        <uc:Textbox  ID="txtConnectionOutputDir" runat="server" Required="false" Label="Local Folder" />

        <uc:FormLabel ID="FormLabel1" runat="server" Text="Customisation" />
        <uc:Checkbox ID="chkConnectionUseCaching" runat="server" Required="false" Label="Caching" Text="Use In-Memory, not SQL (default)" />
        <uc:Checkbox ID="chkConnectionUseAuditTrail" runat="server" Required="false" Label="Audit Trail" Text="Use Audit Trail (default)" />
        <uc:Textbox  ID="txtConnectionNameSpace" runat="server" Required="false" Label="NameSpace" />
        <uc:Textbox  ID="txtConnectionTablePrefix" runat="server" Required="false" Label="TablePrefix" Width="100" />

        <uc:FormLabel ID="flHistory" runat="server" Text="History" />
        <uc:Textbox  ID="txtConnectionUserName" runat="server" Label="Owner" Mode="Locked" />
        <uc:Textbox  ID="txtConnectionCreated" Runat="server" Label="Created" Mode="Locked" />

        <uc:FormButtonsBegin ID="fbb" runat="server" />
            <asp:button id="btnSave"    runat="server" text="Update" causesvalidation="True"  />
            <asp:button id="btnDelete"  runat="server" text="Delete" causesvalidation="False" OnClientClick="return confirm('Delete this Connection?')" />
            <asp:button id="btnCancel"  runat="server" text="Cancel" causesvalidation="False" />
        <uc:FormButtonsEnd   ID="fbe" runat="server" />
    <uc:FormEnd ID="fe" runat="server" />
    
    <asp:ValidationSummary ID="vs" runat="server" ShowSummary="true" EnableClientScript="true" DisplayMode="BulletList" />
</asp:Content>
